Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature (#6): Controllers can set motor voltage #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NoRePercussions
Copy link

Description of the Change

Adds an inner class VoltageControllerOutput to AbstractMotor which allows a unique voltage-based ControllerOutput per motor.

This allows for Controllers to send output to motors via AbstractMotor::getVoltageControllerOutput.

Using an inner class managed by the motor allows for preventing two competing controllers.

Also updates tests.

Motivation

See #6 – voltage control allows for lower-level control and circumventing built-in motor PIDs.

Possible Drawbacks

This may make the codebase more complicated, as it is a distinct idea from "AbstractMotor as ControllerOutput".

Verification Process

Updated tests

Applicable Issues

#6

Adds an inner class `VoltageControllerOutput` to `AbstractMotor` which allows a unique voltage-based `ControllerOutput` per motor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant